package com.hyl.monsterInEachCave;

import com.hyl.creature.Creature;

import java.util.ArrayList;

/**
 * @description:
 * @author: molar
 * @date: Created in 2020/6/14 17:05
 * @version:
 * @modified By:
 */
public class RattanCaveCreatureSet {
    private ArrayList<Creature> rattanCaveCreatures = new ArrayList<>();

    public Creature getrattanCaveCreature(String id) {
        Creature rattanCaveCreature = null;
        for (Creature item : rattanCaveCreatures) {
            if (id.equals(item.getId())) {
                rattanCaveCreature = item;
                break;
            }
        }
        return rattanCaveCreature;
    }

    public RattanCaveCreatureSet() {
    }

    public RattanCaveCreatureSet(ArrayList<Creature> rattanCaveCreatures) {
        this.rattanCaveCreatures = rattanCaveCreatures;
    }

    public ArrayList<Creature> getRattanCaveCreatures() {
        return rattanCaveCreatures;
    }

    public void setRattanCaveCreatures(ArrayList<Creature> rattanCaveCreatures) {
        this.rattanCaveCreatures = rattanCaveCreatures;
    }
}
